/*
 * AddressService.java
 *
 * Created on 22. Juni 2009, 18:16
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package fhv.itb.mst2955.client;
import com.google.gwt.user.client.rpc.RemoteService;
import fhv.itb.mst2955.client.model.AddressProxy;
import fhv.itb.mst2955.client.model.CountryProxy;
import java.util.Collection;
import java.util.Vector;

/**
 * The remote service for dealing with addresses (including countries).
 */
public interface AddressService extends RemoteService{

    /**
     * Gets a list of addresses from the server's database.
     *
     * @return
     * A list of addresses from the server's database.
     */
    public Vector<AddressProxy> getAddresses();

    public void putAddresses(Vector<AddressProxy> addresses);
    public void newAddress(AddressProxy address);
    public Integer deleteAddress(int id);


    /**
     * Gets a list of countries from the server's database.
     *
     * @return
     * A list of countries from the server's database.
     */
    public Vector<CountryProxy> getCountries();
}
